home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Aug 90 / MacApp.Tech$ 8⁄24⁄90 / 1811-Multiple Inheritance-Aug90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.8 KB  |  44 lines  |  [TEXT/GEOL]

  1. INTERNET# Document Id: <44260@apple.Apple.COM>
  2.  
  3. Item    7667562                         24-Aug-90        12:31
  4.  
  5. From:   MALCOLM@APPLE.COM@INTERNET#     Gateway to Internet/BITNET/UUCP
  6.  
  7. To:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. Sub: Re: Multiple Inheritance Ques
  10.  
  11. TO REPLY, use: malcolm@Apple.COM@INTERNET#
  12. Using the reply function in AppleLink does not work for gatewayed E-mail yet.
  13.  
  14. From: malcolm@Apple.COM (Malcolm Slaney)
  15. References: <6435527@AppleLink.Apple.COM>
  16. Lines: 21
  17. Organization: Apple Computer Inc, Cupertino, CA
  18. Newsgroups: apple.mac.app
  19. Path: apple!malcolm
  20. To: macapp.tech$@applelink.apple.com
  21.  
  22.  
  23. POWERUP.ENG@AppleLink.Apple.COM (Power Up Software,PRT) writes:
  24. >I've been asked more than once for an example of a situation in which multiple
  25. >inheritance is really useful, rather than being a means of avoiding thoughtful
  26. >design.  I think I've come up with one, and I'd like to hear the comments of
  27. >anyone interested in responding.
  28.  
  29. I've always thought that the Symbolics (Lisp Machine) Window System was the
  30. BEST example of how to use and prosper with multiple inheritance.  It works
  31. best when you have relatively orthogonal features that want to cooperate.
  32.  
  33. The canonical example is a scrollbar mixin.  Types are called flavors in the
  34. old pre-PCL world, thus mixins are types that aren't meant to be instantiated
  35. on their own but instead mixed into another type.  A scrollbar can be mixed
  36. into a window type and then when the time comes to figure out the real size
  37. of the window the scrollbar gets to add its width into the calculation.
  38.  
  39. Needless to say, it takes a lot more effort to get the type hierarchy right
  40. but I think the result is worth it.
  41.  
  42.                                                 Malcolm Slaney
  43.                                                 ATG Perception Group
  44.